hvmloader: fix off-by-one-bit error when initialising PCI devices
authorKeir Fraser <keir@xen.org>
Wed, 10 Nov 2010 13:58:16 +0000 (13:58 +0000)
committerKeir Fraser <keir@xen.org>
Wed, 10 Nov 2010 13:58:16 +0000 (13:58 +0000)
commitcf1782144735efb98b76227a97abb8787ffccb94
tree10896b0cba560c67de49a35d02383aea6b483b32
parente0dbccc8fe001d7de17afb021c4f87b008da76b1
hvmloader: fix off-by-one-bit error when initialising PCI devices

hvmloader is responsible for - amoungst other things - initialising
the PCI device BARs prior to loading the guest BIOS.  The previous
code only probed for devfn up to 128.  The lower 3 bits are function
IDs so this meant that only devices in slots 0-15 were actually being
initialized.

Signed-off-by: Alex Zeffertt <alex.zeffertt@eu.citrix.com>
Acked-by: Gianni Tedesco <gianni.tedesco@citrix.com>
tools/firmware/hvmloader/hvmloader.c